home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / etc / laptop-mode / laptop-mode.conf
Encoding:
Text File  |  2006-12-06  |  15.5 KB  |  404 lines

  1. ###############################################################################
  2. #
  3. # Configuration for Laptop Mode Tools
  4. # -----------------------------------
  5. #
  6. # There is a "system" to the configuration setting names:
  7. #    CONTROL_something=0/1   Determines whether Laptop Mode Tools controls 
  8. #                            something
  9. #    LM_something=value      Value of "something" when laptop mode is active
  10. #    NOLM_something=value    Value of "something" when laptop mode is NOT active
  11. #    AC_something=value      Value of "something" when the computer is running
  12. #                            on AC power
  13. #    BATT_something=value    Value of "something when the computer is running on
  14. #                            battery power
  15. #
  16. # There can be combinations of LM_/NOLM_ and AC_/BATT_ prefixes, but the
  17. # available prefixes are different for each setting. The available ones are 
  18. # documented in the manual page, laptop-mode.conf(8). If there is no LM_/NOLM_ 
  19. # in a setting name, then the value is used independently of laptop mode state, 
  20. # and similarly, if there is no AC_/BATT_, then the value is used independently
  21. # of power state.
  22. #
  23. # Some options only work on ACPI systems. They are marked ACPI-ONLY.
  24. #
  25. # Note that this configuration file is a fragment of bash shell script: you
  26. # can use all the features of the bash scripting language to achieve your
  27. # desired configuration.
  28. ###############################################################################
  29.  
  30.  
  31.  
  32. ###############################################################################
  33. # Configuration debugging
  34. # -----------------------
  35. ###############################################################################
  36.  
  37. # Set this to 1 if you want to see a lot of information when you start/stop 
  38. # laptop_mode.
  39. VERBOSE_OUTPUT=0
  40.  
  41.  
  42.  
  43. ###############################################################################
  44. # When to enable laptop mode
  45. # --------------------------
  46. #
  47. # "Laptop mode" is the mode in which laptop mode tools makes the computer
  48. # consume less power. This includes the kernel "laptop_mode" feature, which
  49. # allows your hard drives to spin down, as well as various other settings which
  50. # can be tweaked by laptop mode tools. You can enable or disable all of these
  51. # settings using the CONTROL_... options further down in this config file.
  52. ###############################################################################
  53.  
  54. # Enable laptop mode when on battery power.
  55. ENABLE_LAPTOP_MODE_ON_BATTERY=1
  56.  
  57. # Enable laptop mode when on AC power.
  58. ENABLE_LAPTOP_MODE_ON_AC=0
  59.  
  60. # Enable laptop mode when the laptop's lid is closed, even when we're on AC
  61. # power? (ACPI-ONLY)
  62. ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=0
  63.  
  64.  
  65.  
  66. ###############################################################################
  67. # When to enable data loss sensitive features
  68. # -------------------------------------------
  69. #
  70. # When data loss sensitive features are disabled, laptop mode tools acts as if
  71. # laptop mode were disabled, for those features only.
  72. #
  73. # Data loss sensitive features include:
  74. # - laptop_mode (i.e., delayed writes)
  75. # - hard drive write cache
  76. #
  77. # All of the options that follow can be set to 0 in order to prevent laptop
  78. # mode tools from using them to stop data loss sensitive features. Use this
  79. # when you have a battery that reports the wrong information, that confuses
  80. # laptop mode tools.
  81. #
  82. # Disabling data loss sensitive features is ACPI-ONLY.
  83. ###############################################################################
  84.  
  85. # Disable all data loss sensitive features when the battery level (in % of the
  86. # battery capacity) reaches this value.
  87. MINIMUM_BATTERY_CHARGE_PERCENT=3
  88.  
  89. # Disable data loss sensitive features when the battery reports its state
  90. # as "critical".
  91. DISABLE_LAPTOP_MODE_ON_CRITICAL_BATTERY_LEVEL=1
  92.  
  93.  
  94. ###############################################################################
  95. # Controlled hard drives and partitions
  96. # -------------------------------------
  97. #
  98. # For spinning down your hard drives, laptop mode will remount file systems and
  99. # adjust hard drive spindown timeouts. These parameters specify which
  100. # devices and partitions are affected by laptop mode.
  101. ###############################################################################
  102.  
  103. # The drives that laptop mode controls.
  104. # Separate them by a space, e.g. HD="/dev/hda /dev/hdb". The default is a
  105. # wildcard, which will get you all your IDE and SCSI/SATA drives.
  106. HD="/dev/[hs]d[abcdefgh]"
  107.  
  108. # The partitions (or mount points) that laptop mode controls.
  109. # Separate the values by spaces. Use "auto" to indicate all partitions on drives
  110. # listed in HD. You can add things to "auto", e.g. "auto /dev/hdc3". You can
  111. # also specify mount points, e.g. "/mnt/data".
  112. PARTITIONS="auto /dev/mapper/*"
  113.  
  114.  
  115. # If this is enabled, laptop mode tools will assume that SCSI drives are really
  116. # SATA drives that only _look_ like SCSI drives, and will use hdparm to control
  117. # them. Set this to 0 if you have /dev/sd devices and you want laptop mode
  118. # tools to use the "sdparm" command to control them. 
  119. ASSUME_SCSI_IS_SATA=1
  120.  
  121.  
  122. ###############################################################################
  123. # Hard drive behaviour settings
  124. # -----------------------------
  125. #
  126. # These settings specify how laptop mode tools will adjust the various
  127. # parameters of your hard drives and file systems.
  128. ###############################################################################
  129.  
  130. # Maximum time, in seconds, of work that you are prepared to lose when your
  131. # system crashes or power runs out. This is the maximum time that Laptop Mode
  132. # will keep unsaved data waiting in memory before spinning up your hard drive.
  133. LM_BATT_MAX_LOST_WORK_SECONDS=600
  134. LM_AC_MAX_LOST_WORK_SECONDS=360
  135.  
  136. # Should laptop mode tools control readahead?
  137. CONTROL_READAHEAD=1
  138.  
  139. # Read-ahead, in kilobytes. You can spin down the disk while playing MP3/OGG
  140. # by setting the disk readahead to a reasonable size, e.g. 3072 (3 MB).
  141. # Effectively, the disk will read a complete MP3 at once, and will then spin 
  142. # down while the MP3/OGG is playing. Don't set this too high, because the 
  143. # readahead is applied to _all_ files that are read from disk.
  144. LM_READAHEAD=3072
  145. NOLM_READAHEAD=128
  146.  
  147. # Should laptop mode tools add the "noatime" option to the mount options when 
  148. # laptop mode is enabled?
  149. CONTROL_NOATIME=0
  150.  
  151. # Should laptop mode tools control the hard drive idle timeout settings?
  152. CONTROL_HD_IDLE_TIMEOUT=1
  153.  
  154. # Idle timeout values. (hdparm -S)
  155. # Default is 2 hours on AC (NOLM_HD_IDLE_TIMEOUT_SECONDS=7200) and 20 seconds
  156. # for battery and for AC with laptop mode on.
  157. LM_AC_HD_IDLE_TIMEOUT_SECONDS=20
  158. LM_BATT_HD_IDLE_TIMEOUT_SECONDS=20
  159. NOLM_HD_IDLE_TIMEOUT_SECONDS=7200
  160.  
  161. # Should laptop mode tools control the hard drive power management settings?
  162. CONTROL_HD_POWERMGMT=0
  163.  
  164. # Power management for HD (hdparm -B values)
  165. BATT_HD_POWERMGMT=1
  166. LM_AC_HD_POWERMGMT=255
  167. NOLM_AC_HD_POWERMGMT=255
  168.  
  169. # Should laptop mode tools control the hard drive write cache settings?
  170. CONTROL_HD_WRITECACHE=0
  171.  
  172. # Write cache settings for HD (hdparm -W values)
  173. NOLM_AC_HD_WRITECACHE=1
  174. NOLM_BATT_HD_WRITECACHE=0
  175. LM_HD_WRITECACHE=0
  176.  
  177.  
  178.  
  179. ###############################################################################
  180. # CPU frequency scaling and throttling
  181. # ------------------------------------
  182. #
  183. # Laptop mode tools can automatically adjust your kernel CPU frequency
  184. # settings. This includes upper and lower limits and scaling governors.
  185. # There is also support for CPU throttling, on systems that don't support
  186. # frequency scaling.
  187. #
  188. # This feature only works on 2.6 kernels.
  189. ###############################################################################
  190.  
  191. # Should laptop mode tools control the maximum CPU frequency?
  192. CONTROL_CPU_FREQUENCY=0
  193.  
  194. # Legal values are "slowest" for the slowest speed that your
  195. # CPU is able to operate at, "fastest" for the fastest speed,
  196. # "medium" for some value in the middle, or any value listed in
  197. # /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies.
  198. BATT_CPU_MAXFREQ=medium
  199. BATT_CPU_MINFREQ=slowest
  200. BATT_CPU_GOVERNOR=ondemand
  201. LM_AC_CPU_MAXFREQ=fastest
  202. LM_AC_CPU_MINFREQ=slowest
  203. LM_AC_CPU_GOVERNOR=ondemand
  204. NOLM_AC_CPU_MAXFREQ=fastest
  205. NOLM_AC_CPU_MINFREQ=slowest
  206. NOLM_AC_CPU_GOVERNOR=performance
  207.  
  208. # Should laptop mode tools control the CPU throttling? This is only useful
  209. # on processors that don't have frequency scaling.
  210. # (Only works when you have /proc/acpi/processor/CPU*/throttling.)
  211. CONTROL_CPU_THROTTLING=0
  212.  
  213. # Legal values are "maximum" for the maximum (slowest) throttling level,
  214. # "minimum" for minimum (fastest) throttling level, "medium" for a value
  215. # somewhere in the middle (this is usually 50% for P4s), or any value listed
  216. # in /proc/acpi/processor/CPU*/throttling. Be careful when using "maximum":
  217. # this may be _very_ slow (in fact, with P4s it slows down the processor
  218. # by a factor 8).
  219. BATT_CPU_THROTTLING=medium
  220. LM_AC_CPU_THROTTLING=medium
  221. NOLM_AC_CPU_THROTTLING=minimum
  222.  
  223.  
  224.  
  225. ###############################################################################
  226. # Syslog configuration control
  227. # ----------------------------
  228. # Syslog daemons have a tendency to sync their log files when entries are
  229. # written to them. This causes disks to spin up, which is not very nice when
  230. # you're trying to save power. The syslog.conf can be tweaked to *not* sync
  231. # a given file, by prepending the log file name with a dash, like this:
  232. #
  233. #     mail.*        -/var/log/mail/mail.log
  234. #
  235. # Using the following options, you can let laptop mode switch between
  236. # different syslog configurations depending on whether you are working on
  237. # battery or on AC power. To set this up, start by configuring these options
  238. # for your syslog daemon, and then run lm-syslog-setup to create the various
  239. # files. Then edit the laptop mode-specific syslog configuration files to
  240. # remove the syncs only when laptop mode is active.
  241. ###############################################################################
  242.  
  243. # Should laptop mode tools control which syslog.conf should be used?
  244. CONTROL_SYSLOG_CONF=0
  245.  
  246. # Laptop mode tools controls syslog.conf by replacing /etc/syslog.conf (or
  247. # whatever you specify in SYSLOG_CONF) by a link to the files configured here.
  248. # NOTE: these files are NOT created by default, and if they do not
  249. # exist this feature will not work. You can run the script
  250. # /usr/sbin/lm-syslog-setup to set things up.
  251. LM_AC_SYSLOG_CONF=/etc/syslog-on-ac-with-lm.conf
  252. NOLM_AC_SYSLOG_CONF=/etc/syslog-on-ac-without-lm.conf
  253. BATT_SYSLOG_CONF=/etc/syslog-on-battery.conf
  254.  
  255. # Signal this program when syslog.conf has been replaced.
  256. SYSLOG_CONF_SIGNAL_PROGRAM=syslogd
  257.  
  258. # This is the syslog configuration file that should be replaced by a link to the
  259. # other files.
  260. SYSLOG_CONF=/etc/syslog.conf
  261.  
  262.  
  263.  
  264. ###############################################################################
  265. # X display settings
  266. # ------------------
  267. #
  268. # Using these settings, you can let laptop mode tools control the X display
  269. # standby timeouts.
  270. ###############################################################################
  271.  
  272. # Should laptop mode tools control DPMS standby settings for X displays?
  273. CONTROL_DPMS_STANDBY=0
  274.  
  275. # These settings specify the standby timeout for the X display,
  276. # in seconds. The suspend and poweroff timeouts are somewhat
  277. # larger values derived from these values.
  278. BATT_DPMS_STANDBY=300
  279. LM_AC_DPMS_STANDBY=1200
  280. NOLM_AC_DPMS_STANDBY=1200
  281.  
  282.  
  283.  
  284. ###############################################################################
  285. # Terminal settings
  286. # -----------------
  287. #
  288. # Using these settings, you can let laptop mode tools control the terminal
  289. # blanking timeouts.
  290. ###############################################################################
  291.  
  292. # Should laptop mode tools control terminal blanking settings?
  293. CONTROL_TERMINAL=0
  294.  
  295. # These settings specify the blanking and powerdown timeouts. Note that
  296. # the powerdown timeout is counted from the moment the screen is blanked,
  297. # i.e. BLANK_MINUTES=2 and POWERDOWN_MINUTES=5 means the screen powers
  298. # down after 7 minutes of inactivity. The range for all these settings is
  299. # 1 to 60 minutes, or 0 to disable.
  300. BATT_TERMINAL_BLANK_MINUTES=1
  301. BATT_TERMINAL_POWERDOWN_MINUTES=2
  302. LM_AC_TERMINAL_BLANK_MINUTES=10
  303. LM_AC_TERMINAL_POWERDOWN_MINUTES=10
  304. NOLM_AC_TERMINAL_BLANK_MINUTES=10
  305. NOLM_AC_TERMINAL_POWERDOWN_MINUTES=50
  306.  
  307.  
  308.  
  309. ###############################################################################
  310. # Auto-hibernation settings
  311. # -------------------------
  312. #
  313. # Using these settings, you can make laptop mode tools automatically put your
  314. # computer into hibernation when the battery level goes critically low.
  315. #
  316. # This feature only works on ACPI, and only works on computers whose batteries
  317. # give off battery events often enough.
  318. ###############################################################################
  319.  
  320. # Should laptop mode tools perform auto-hibernation?
  321. ENABLE_AUTO_HIBERNATION=0
  322.  
  323. # The hibernation command that is to be executed when auto-hibernation
  324. # is triggered.
  325. HIBERNATE_COMMAND=/usr/sbin/hibernate
  326.  
  327. # Auto-hibernation battery level threshold, in percentage of the battery's
  328. # total capacity.
  329. AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT=2
  330.  
  331. # Enable this to auto-hibernate if the battery reports that its level is
  332. # "critical".
  333. AUTO_HIBERNATION_ON_CRITICAL_BATTERY_LEVEL=1
  334.  
  335.  
  336.  
  337. ###############################################################################
  338. # Start/Stop Programs settings
  339. # ----------------------------
  340. #
  341. # Laptop mode tools can automatically start and stop programs when entering
  342. # various power modes. Put scripts accepting "start" and "stop" parameters
  343. # in the directories /etc/laptop-mode/batt-stop, batt-start, lm-ac-stop,
  344. # lm-ac-start, nolm-ac-stop and nolm-ac-start. Laptop mode will call the
  345. # scripts in a state-"stop" directory with the "stop" parameter when entering
  346. # the state in question, and it will call the same scripts with the "start"
  347. # parameter when leaving the state. Scripts in a state-"start" directory are
  348. # called with the "start" parameter when the specified state is entered, and
  349. # with the "stop" parameter when the specified state is left.
  350. ###############################################################################
  351.  
  352. # Should laptop mode start and stop programs? 
  353. CONTROL_START_STOP=1
  354.  
  355.  
  356.  
  357. ###############################################################################
  358. # Settings you probably don't want to touch
  359. # -----------------------------------------
  360. #
  361. # It is usually not necessary to change these parameters. They are included
  362. # for completeness' sake.
  363. ###############################################################################
  364.  
  365. # Change mount options on partitions in PARTITIONS? You don't really want to
  366. # disable this. If you do, then your hard drives will probably not spin down
  367. # anymore.
  368. CONTROL_MOUNT_OPTIONS=1
  369.  
  370. # Dirty synchronous ratio.  At this percentage of dirty pages the process
  371. # which calls write() does its own writeback.
  372. LM_DIRTY_RATIO=60
  373. NOLM_DIRTY_RATIO=40
  374.  
  375. # Allowed dirty background ratio, in percent.  Once DIRTY_RATIO has been
  376. # exceeded, the kernel will wake pdflush which will then reduce the amount
  377. # of dirty memory to dirty_background_ratio.  Set this nice and low, so once
  378. # some writeout has commenced, we do a lot of it.
  379. LM_DIRTY_BACKGROUND_RATIO=1
  380. NOLM_DIRTY_BACKGROUND_RATIO=10
  381.  
  382. # kernel default settings -- don't touch these unless you know what you're 
  383. # doing.
  384. DEF_UPDATE=5
  385. DEF_XFS_AGE_BUFFER=15
  386. DEF_XFS_SYNC_INTERVAL=30
  387. DEF_XFS_BUFD_INTERVAL=1
  388. DEF_MAX_AGE=30
  389.  
  390. # This must be adjusted manually to the value of HZ in the running kernel
  391. # on 2.4, until the XFS people change their 2.4 external interfaces to work in
  392. # centisecs. This can be automated, but it's a work in progress that still
  393. # needs# some fixes. On 2.6 kernels, XFS uses USER_HZ instead of HZ for
  394. # external interfaces, and that is currently always set to 100. So you don't
  395. # need to change this on 2.6.
  396. XFS_HZ=100
  397.  
  398. # Seconds laptop mode has to to wait after the disk goes idle before doing
  399. # a sync.
  400. LM_SECONDS_BEFORE_SYNC=2
  401.  
  402.  
  403.